package com.wolf.service.impl;

import com.wolf.pojo.Wl_user_role_competences;
import com.wolf.repository.Wl_user_role_competencesMapper;
import com.wolf.service.Wl_user_role_competencesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Wl_user_role_competencesServiceImpl implements Wl_user_role_competencesService {

    @Autowired
    private Wl_user_role_competencesMapper wl_user_role_competencesMapper;

    public void setWl_user_role_competencesMapper(Wl_user_role_competencesMapper wl_user_role_competencesMapper) {
        this.wl_user_role_competencesMapper = wl_user_role_competencesMapper;
    }

    @Override
    public int deleteByPrimaryKey(String id) {
        return wl_user_role_competencesMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Wl_user_role_competences record) {
        return wl_user_role_competencesMapper.insert(record);
    }

    @Override
    public int insertSelective(Wl_user_role_competences record) {
        return wl_user_role_competencesMapper.insertSelective(record);
    }

    @Override
    public Wl_user_role_competences selectByPrimaryKey(String id) {
        return wl_user_role_competencesMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Wl_user_role_competences record) {
        return wl_user_role_competencesMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Wl_user_role_competences record) {
        return wl_user_role_competencesMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Wl_user_role_competences> getAll() {
        return wl_user_role_competencesMapper.getAll();
    }

    @Override
    public List<Wl_user_role_competences> getbyid(String id) {
        return wl_user_role_competencesMapper.getbyid(id);
    }

    @Override
    public Wl_user_role_competences getbyroleid(String roleid,String cid) {
        return wl_user_role_competencesMapper.getbyroleid(roleid,cid);
    }
}
